# $OpenBSD: Makefile,v 1.2 2016/04/27 13:27:00 ajacoutot Exp $

COMMENT=		glib/gio-based lib for file management

WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender atk-1.0 c cairo exif expat ffi fm-extra
WANTLIB += fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0
WANTLIB += gmodule-2.0 gobject-2.0 graphite2 gthread-2.0 gtk-x11-2.0
WANTLIB += glib-2.0 harfbuzz iconv intl m menu-cache pango-1.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread
WANTLIB += pthread-stubs xcb xcb-render xcb-shm z

BUILD_DEPENDS=		lang/vala

RUN_DEPENDS=		devel/desktop-file-utils \
			misc/shared-mime-info \
			x11/gnome/gvfs

LIB_DEPENDS=		graphics/libexif \
			x11/libfm/extra \
			x11/menu-cache \
			x11/gtk+2

FAKE_FLAGS=		sysconfdir=${PREFIX}/share/examples/libfm

post-install:
	rm ${PREFIX}/lib/libfm/modules/*.a

# libfm-extra
	rm ${PREFIX}/include/libfm-1.0/fm-{extra,version,xml-file}.h \
		${PREFIX}/lib/libfm-extra.* \
		${PREFIX}/lib/pkgconfig/libfm-extra.pc

.include <bsd.port.mk>
